<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>字体排版</title>
  <style>
    .box {
      margin: 0 auto;
      width: 300px;
      height: 200px;

    }

    p {
      /* text-indent: 20px; */
      white-space: nowrap;
      overflow: hidden;
      width: 100%;
      text-overflow: ellipsis;
    }

    p::first-letter {
      font-size: 12px;
    }

    span::first-letter {
      font-size: 100px;
    }

    h1 {
      text-transform: capitalize;
    }

    strong {
      text-transform: uppercase;
    }

    p.cummings {
      text-transform: lowercase;
    }

    p.raw {
      text-transform: none;
    }
  </style>
</head>

<body>
  <div class="box">
    <p>
      用户代理设置，一般约为 font-size 的1.2倍；line-height 继承具体的值或比率 (补：严重依赖 font-families 自身设置)
    </p>
    <span>用户代理设置</span>
  </div>
  <h1>The heading-one at the beginninG</h1>
  <p> By default, text is displayed in the capitalization it has in the source
    document, but <strong>it is possible to change this</strong> using
    the property 'text-transform'.
  </p>
  <p class="cummings">
    For example, one could Create TEXT such as might have been Written by
    the late Poet e.e.cummings.
  </p>
  <p class="raw">
    If you feel the need to Explicitly Declare the transformation of text
    to be 'none', that can be done as well.
  </p>
</body>

</html>